import Mock from 'mockjs'
import { computed } from "vue";

// 随机手机号
let arr = []
let arrphome = ['137', '139', '153', '134', '188', '167', '142', '139']

let Aphone = () => {
  let index = Math.floor(Math.random() * arrphome.length)
  console.log(arrphome[index]);

  let num = arrphome[index]
  for (let j = 0; j < 8; j++) {
    num += Math.floor(Math.random() * 10);
  }
  return num
}


for (let i = 0; i < 10; i++) {

  arr.push(Mock.mock({

    'name': "admin1",
    'number': "ad1347890@163.com",
    'role': "超级管理员",
    'phone': "16789009090",
    'enable': false,
    'time': "2020/09/08 10:06",
    
    'Num': '202334',
    'name': '@cname',
    'phome': Aphone,
    'IdCard': '@id',
    'team': '李明明团队',
    'bao': '老年人服务包-B',
    'bao1': '老年服务包',
    'state': '待审核',
    'birthday': '@date("yyyy-MM-dd")',
  },
  ))
}


console.log(111, arr)